<include file="Public/header"/> 
            <section class="content">
        <form class="form" method="post" action="__APP__/Home/Index/add" enctype="multipart/form-data">
            <input type="hidden" name="_token" value="6rWIWJtsthKiSuEOanEhEuoAlGM2oHK4QIRbjGVU">
            <input type="hidden" name="_method" value="PUT">
            <div class="box box-primary">
                <div class="box-header with-border">
                    <h3 class="box-title">修改</h3>
                </div>
                <div class="box-body">
                       <div class="form-group">
                      <label class="form-title" for="solve_images_add" >图片url:</label>
                        <input type="texr" readonly="true" id="news_img" name="image_url" />  <input value="点击上传图片" onclick="upImage();" type="button"/>
                    </div>
                    <div class="form-group">
                        <label>排序</label>
                        <input type="text" name="sort" class="form-control" required value="1">
                    </div>
                </div>
                <div class="box-footer">
                    <button type="submit" class="btn btn-primary">保存</button>
                    <button type="submit" onclick="history.back()" class="btn btn-default pull-right">返回</button>
                </div>
            </div>
        </form>
    </section>
   
    <script type="text/plain" id="j_ueditorupload" style="height:5px;display:none;" ></script>
                        <!--注册百度ueditor-->  
                            <script>
                            //实例化编辑器
                            var o_ueditorupload = UE.getEditor('j_ueditorupload',
                                    {
                                        autoHeightEnabled: false
                                    });
                            o_ueditorupload.ready(function()
                            {
                                o_ueditorupload.hide(); //隐藏编辑器
                            });
                            //监听图片上传
                            o_ueditorupload.addListener('beforeInsertImage', function(t, arg)
                            {
                                // alert('这是图片地址：' + arg[0].src);
                                $("#news_img").val(arg[0].src);
                            });
                            //弹出图片上传的对话框
                            function upImage()
                            {
                                var myImage = o_ueditorupload.getDialog("insertimage");
                                myImage.open();
                            }
                 
         </script>       
          <include file="Public/footer"/>   
